<?php
Class BaseDao {
	private static $instance;
	public static function  __callStatic($func,$arguments)
	{
		$class = get_called_class();
		if(empty(self::$instance)) {
			self::$instance = new $class();
		}
		if(method_exists(self::$instance, $func.'Imp')) {
			call_user_func_array(array(self::$instance,$func.'Imp'),$arguments);
		}
	}
}